Skip to content

London| ITP-May-25 | Anuar Duisenbek | Module-Data-Groups | Sprint-3 | Quote Generator App #736

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

AnuarBey
Copy link

@AnuarBey AnuarBey commented Aug 1, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

The app displays a random motivational quote and author, with a "New quote" button that updates the content using JavaScript.

Add JS functionality and styling to Quote Generator App.

Questions

Ask any questions you have for your reviewer.

@AnuarBey AnuarBey added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Aug 1, 2025
@@ -3,13 +3,18 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Title here</title>
<title>Quote generator app</title>
<link rel="stylesheet" href="style.css" />
<script defer src="quotes.js"></script>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what defer attribute does in script tag?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will prevent the DOMContentLoaded event from firing until the script has loaded and finished evaluating

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, defer attribute will ensure script is downloaded in parallel but not executed until HTML document is fully parsed.

Comment on lines +63 to +64
button:active {
transform: translateY(2px);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you explain what :active pseudo-class does?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So, button moves slightly down by 2 pixels when pressed. When I release it, the button returns to its original position. This makes the button feel more realistic and user-friendly.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:active works when the button is being activated by a user, means clicked.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright

@day-lee day-lee added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 6, 2025
@day-lee
Copy link

day-lee commented Aug 6, 2025

Hi @AnuarBey. It works as intended. Well done! I left a few questions. Please have a look.

@AnuarBey AnuarBey added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Aug 6, 2025
@day-lee day-lee added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Aug 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Complete Volunteer to add when work is complete and all review comments have been addressed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants